/*
 * @Author: yaoqiwei 815482326@qq.com
 * @Date: 2023-11-01 14:25:13
 * @LastEditors: yaoqiwei 815482326@qq.com
 * @LastEditTime: 2023-11-06 17:25:23
 * @FilePath: \vue3-demo\src\main.ts
 * @Description: main入口
 */
import './assets/main.css'

import { createApp } from 'vue'
import App from './App.vue'
import { setupRouter } from './router'
import Antd from 'ant-design-vue'
import { setupPinia } from './store'

if (import.meta.env.DEV) {
  import('../node_modules/ant-design-vue/dist/reset.css')
}

async function bootstrap() {
  const app = createApp(App)

  // 路由配置
  setupRouter(app)

  // 配置pinia
  setupPinia(app)

  app.use(Antd)

  app.mount('#app')
}

bootstrap()
